<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/sapar.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/common.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/manage.css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/statics/css/bootstrap.min.css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/jquery.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/sapar.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/statics/js/WdatePicker.js"></script>
<script type="text/javascript">
	$('select').iSelect();
	$(function() {
		$('.modal').modal();
	});
</script>
<title>入库单列表</title>
</head>
<body>
	<div id="saper-container">
		<div id="saper-hd"></div>
		<div id="saper-bd">
			<div class="subfiled clearfix">
				<h2>入库单列表</h2>
			</div>
			<a href="#mymodal" data-toggle="modal" class="btn btn-primary">修改</a>
		</div>
		<div id="saper-ft"></div>
	</div>

	<!--弹出的模态框-->
	<div id="mymodal" class="modal fade">
		<!-- modal固定布局，上下左右都是0表示充满全屏，支持移动设备上使用触摸方式进行滚动。。-->
		<div class="modal-dialog modal-lg">
			<!-- modal-dialog默认相对定位，自适应宽度，大于768px时宽度600，居中-->
			<div class="modal-content">
				<form
					action="${pageContext.request.contextPath }/updateIntoproduct.do"
					method="post">
					<!-- modal-content模态框的边框、边距、背景色、阴影效果。-->
					<div class="modal-header">
						<button class="close" data-dismiss="modal">&times;</button>
						<center>
							<h3 class="modal-title">修改入库单</h3>
						</center>
					</div>
					<div class="media-body">
						<div class="addjiejidan">
							<center>
								<input type="hidden" name="intoproduct_id"
									value="${intoproduct.intoproduct_id}" id="intoproduct_id" />
								<table bordercolor="lightgray" border="2">
									<tr align="right">
										<%-- <td>入库单号</td>
										<td><input type="text" class="form-control"
											name="intoproduct_id" value="${intoproduct.intoproduct_id}" /></td> --%>
										<td>产品编号</td>
										<td><input type="text" class="form-control"
											name="product_id" value="${intoproduct.product_id}" /></td>
										<td>供应商编号</td>
										<td><input type="text" class="form-control"
											name="supplier_id" value="${intoproduct.supplier_id}" /></td>
										<td>员工编号</td>
										<td><input type="text" class="form-control"
											name="employee_id" value="${intoproduct.employee_id}" /></td>
									</tr>

									<tr align="right">
										<td>支付类型</td>
										<td><input type="text" class="form-control"
											name="pay_type" value="${intoproduct.pay_type}" /></td>
										<td>进货时间</td>
										<td><div class="time-select">
												<input type="text" class="form-control"
													onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
													name="intoproduct_time"
													value="<fmt:formatDate value="${intoproduct.intoproduct_time}" />" />
												<i class="date-icon"></i>
											</div></td>
										<td>数量</td>
										<td><input type="text" class="form-control"
											name="intoproduct_num" value="${intoproduct.intoproduct_num}" /></td>
									</tr>
									<tr align="right">
										<td>注释</td>
										<td><input type="text" class="form-control"
											name="intoproduct_note"
											value="${intoproduct.intoproduct_note}" /></td>
										<td>所属店铺</td>
										<td><select class="form-control" name="store_id">
												<option value="1"
													<c:if test="${intoproduct.store_id eq 1}"> selected=selected</c:if>>好易修
												</option>
												<option value="2"
													<c:if test="${intoproduct.store_id eq 2}"> selected=selected</c:if>>修屏哥</option>
										</select></td>
										<td>状态</td>
										<td><select class="form-control"
											name="intoproduct_status">
												<option value="0"
													<c:if test="${intoproduct.intoproduct_status eq 0}"> selected=selected</c:if>>启用
												</option>
												<option value="1"
													<c:if test="${intoproduct.intoproduct_status eq 1}"> selected=selected</c:if>>禁用
												</option>
										</select></td>
									</tr>
								</table>
							</center>
						</div>
					</div>
					<div class="modal-footer">
						<button class="btn btn-default" data-dismiss="modal">关闭</button>
						<input type="submit" value="修改" class="btn btn-primary" />
					</div>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript"
		src='${pageContext.request.contextPath }/statics/js/jquery-1.12.4.js'></script>
	<script type="text/javascript"
		src='${pageContext.request.contextPath }/statics/js/bootstrap.js'></script>
	<script type="text/javascript">
		$('select').iSelect();
	</script>
</body>
</html>